package com.stock.mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

public interface StockMapper {

    @Update("update `stock` set count=count-1 where shop_id=#{shopId}")
    Integer reduceStock(@Param(value = "shopId") Integer shopId);
}
